import request from '@/utils/request'
// 查询成本价重量模板列表
export function getData(data) {
  return request({
    url: '/system/costWeightParttion/list',
    method: 'post',
    data,
  })
}
// 批量新增或修改成本价模板
export function addData(data) {
  return request({
    url: '/system/costWeightParttion/add',
    method: 'post',
    data,
  })
}
// 修改成本价重量模板
export function editData(data) {
  return request({
    url: '/system/costWeightParttion/edit',
    method: 'put',
    data,
  })
}
// 删除成本价重量模板
export function delData(ids) {
  return request({
    url: `/system/costWeightParttion/remove/${ ids }`,
    method: 'delete',

  })
}
// 获取成本价重量模板详细信息
export function getDetail(id) {
  return request({
    url: `/system/costWeightParttion/getInfo/${ id }`,
    method: 'get',

  })
}